<?php
class homeAction extends BaseAction 
{
    public function __construct()
    {
        $this->setLocation();
    }

    public function executeIndex()
    {                           
        //nieuws box
        $nieuws = NieuwsPeer::getNieuws(7);
        core::$tpl->assign('nieuws',$nieuws);    

        //upcomming Matches
        $match = WedstrijdPeer::getOpkomend();
        core::$tpl->assign('match', $match);     
        $this->setContent('home.tpl');
    }
}
?>
